import 'package:flutter/material.dart';
import "package:myapp/_common/NestedTabBarView.dart";
import "./widget/hot/HotMemuBar.dart";
import "./widget/hot/HotTrending.dart";
import "./widget/hot/HotRecommend.dart";

class HotWidget extends StatefulWidget {
  const HotWidget({super.key});

  @override
  State<StatefulWidget> createState() {
    return _HotWidgetState();
  }
}

class _HotWidgetState extends State<HotWidget> {
  @override
  Widget build(BuildContext context) {
    // 嵌套列表
    return CustomScrollView(
      controller: NestedInnerScrollController.maybeOf(context),
      slivers: [
        // 处理嵌套遮挡问题
        SliverOverlapInjector(
          handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
        ),
        HotMenuBar(), //菜单
        HotTrending(), //热搜话题
        HotRecommend(), //推荐视频列表
        const SliverToBoxAdapter(
          child: SizedBox(
            height: 100,
          ),
        ),
      ],
    );
  }
}
